Print stack trace.
Added special login feature and steps for testing.