Adding basic User Authentication code and supporting templates