Added check to see if login details are null and displays error message if they are. Modified user profile.jsp to display correct information.