Added logout

Added logout function to call logout in login_model and load login view.
Added logout function

Added logout to end the session.
Changed logout link

Changed link to call logout function.