demo for login and registration