added authentication, modified view to adapt admin and users credentials