working log in and registration