Fixed navigation

Fixed navigation between Login and Register.
Added overload to isValidLogin