How do you find this sort of code? Easy to read? Do you have problems to find out where scriplet starts and where is end? How would you handle methods calls that are so easily available to you through server side coding?
Can you imagine that somebody will also add here Java validation of data received from previous page, code for setting up session or other way of forwarding data, plus add code for some redirecting forward to next page or back to login page of login failed?