Changed login page to return to itself if login fails. Corrected spelling mistake in sql script.