Fixed a bug in the login system. Restricting edit page from normal users.