tests for login and registration