Added logout and changed permissions for normal user.