Tests for username and password