Added a login page
Added comments and session check
Added encryption to password

Plus small if statement fix
Comments and small changes