This is the default setting set by your device for security reasons. To change this, go to your device’s Settings, proceed to Applications, and check under Application Manager. Uncheck ‘do not keep activities’. This will let you remain logged in even when the app is running in the background.