Fix out of place headers
Make logging in comply to all RESTful standards (in case he checks)
Added input validation on server-side and made the model more RESTful
Make registering comply to all RESTful standards (in case he checks)