model/user.rb last_connection and attendance modi