Added login for blog model
Shifting func. reduced views