Editing user profiles worked on

editprofile.jsp will redirect to login.jsp if the user is not logged in
login.jsp will redirect to login.jsp if the user is already logged in
index.jsp will redirect to login.jsp if the user is not logged in or go
to /messages if the user is already logged in