Boilerplate for a generic secure login and registration system, to be incorporated into smaller projects