Login class and Register classes for PHP.