increace performance of student index and prime_cache
using student here and not enrollment
reset session if user is logged in and goes back to login page, remove references to back to prototype branch