Dumping failed login stack trace in development mode only

PLAT-1216