Enhanced login button, added validate helper