Creating a partial form for edit and new page. Also added has_secure_password in model for bcrypt to work