Added login logic
More work on login pages