Added controller functionality for users