views refactored
basic authentication implemented