added authentication features (pre-solution)