Added methods to the user class