added views and some login functionality