Added Tommy's part(Registration and Login) and small changes to accomodate