Tweaked login page; fixed crash in encyclopedia results when there are fewer than 5 exercises