added login and registration