Added user auth

This is not yet tested, need the front end feature to test together or write unit tests