login functionality completed