add carrierwave, login and logout code for user