wrote api for checking if user is logged in or not
add log out button to user show page
updated api for logging user in to send back a json success