Fix bug in Login form. Will refactor later.