Added 'Register' functionality