Add User class and split routes