Created methods for user class.