refactor feature spec
refactor feature spec code
refactor code for logged_in links and add devise logout path