Update register & login

update both layout and handle fail condition
Clean project