fix the devise  login problem and add the event model  need to fix the page and finish the rspec
Finish event function and need future test