adding flash messags, login and registration views