Added user authentication part1
Still needs to be hooked to client side.