added auth system, some changes in views