Add initial code for user authentication

Change-Id: Ie0c439244f1ae3af707b73ef64b1a411c2aede20