checking for nil username and password