Create assignment model
Fix login status on attendances#index

Attendances#index didn't recognize when the user is logged in.
Set up get_current_student helper function