Code for validating username and password in jsp