further progress in login and registration