Create a method in User to test the connection.