fixing teacher profile bug plus adding features to register subject activity