Sign in improved

Added form validation
Added connection checking
Added error message
Added prefrences (now saving user’s id and token)
Added error codes
Added fragments for new bit and feed.