Added account registration functionality.