added login page logic
updated login