add login funcitionality
display flash notices