Student profile functionality and small fixes