Finished author login, session functionality.