Why are you sending the username and password both in the hidden field ??
Because I don't think that there is any reason to pass the both. You can pass username only after validating both, But that would also not be secure because you can't hide it from the source code. so passing it in hidden field is really USELESS and INSECURE.
The best way to do it is use Cookie or Session or if you want to make it more secure that you could go further for generating some random numbers login..
For for your Sms service Cookie or session will be the best..
Good Luck
Tabish