Advanced Login Form with Validation