Login page - validation(js) and exception handling