fixed email of nil problem
add paperclip gem & made it work