Added session management to registration so user is logged in straight
away.