Moved user class file to api folder.