Added 3 new functions

Register function, login function, trade-in function