added comments and finished the login page