added login & blogs functionality