Implemented user login (session / form).

Still probably needs to be refined