GH28: Implement forgot password action

Added comments
Fixed broken functionality for registration.