added thumbnail and regular sized picture uploading
added devise
still need to handle the redirect after login properly