Trying to implement some functions that would register a User (this commit might be reverted).