Implemented the getUser function

Note: It implements #4