Full login functionality