Function for adding user implemented

This in UserRepository.php. Added getter to User.php as well for
passwords.