fixed login functionality
still only working on username for now - password integration to be done yet